package com.qinghua.blog;

import org.springframework.http.HttpStatus;
import org.springframework.web.bind.annotation.ResponseStatus;

//自定义异常返回状态码为404
@ResponseStatus(HttpStatus.NOT_FOUND)
public class NoFoundException extends RuntimeException{

    public NoFoundException(){

    }
    public NoFoundException(String message){
        super(message);
    }
    public NoFoundException(String message,Throwable cause){
        super(message,cause);
    }
}
